package lab02.test37;

public class Graduate extends Student{
    //继承并扩展Student类
    //平均超过80分才能够通过
    @Override
    String calGrade() {
        double average=calAverage();
        if (average>80){
            grade="通过";
        }
        else {
            grade="不通过";
        }
        return grade;
    }

}
